package vn.lumi.smarthome.io.model;

import java.util.ArrayList;

public class Room {
	private int id;
	private int floor_id;
	private String name;
	private ArrayList<Device> devices = new ArrayList<Device> ();
	private ArrayList<Scene> scenes = new ArrayList<Scene> ();
	
	//constructors
	public Room() {
	}

	public Room(int id, int floor_id, String name,  ArrayList<Device> devices, ArrayList<Scene> scenes) {
		super();
		this.id = id;
		this.floor_id = floor_id;
		this.name = name;
		this.devices = devices;
		this.scenes = scenes;
	}

	//devices
	public  ArrayList<Device> getDevices() {
		return devices;
	}

	public void setDevices( ArrayList<Device> devices) {
		this.devices = devices;
	}
	
	public void addDevice(Device dev){
		this.devices.add(dev);
	}

	//scenes
	public  ArrayList<Scene> getScenes() {
		return scenes;
	}

	public void setScenes( ArrayList<Scene> scenes) {
		this.scenes = scenes;
	}
	
	public void addScene(Scene scene){
		this.scenes.add(scene);
	}
	
	//others
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getFloor_id() {
		return floor_id;
	}

	public void setFloor_id(int floor_id) {
		this.floor_id = floor_id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	
}
